<?xml version="1.0" encoding="utf-8"?>

<LinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    android:background="#f000">

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="vertical"
        android:gravity="center"
        android:visibility="gone"
        android:id="@+id/progressBar">

        <ProgressBar
            style="@android:style/Widget.ProgressBar.Large"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_centerInParent="true"
            android:background="@android:color/background_dark"/>

        <TextView
            android:id="@+id/idvistText"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_centerInParent="true"
            android:background="@android:color/transparent"
            android:gravity="center"
            android:text="@string/waitSud"
            android:textColor="@android:color/white" />
    </LinearLayout>

<RelativeLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    android:background="#f000"
    android:id="@+id/system_of_cut">

    <RelativeLayout
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:orientation="horizontal">

        <TextView
            android:id="@+id/tView03"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_centerVertical="true"
            android:layout_toLeftOf="@+id/btnCan03"
            android:gravity="center"
            android:text="@string/textCan03"
            android:textColor="#ff0000"
            android:textSize="40sp" />

        <Button
            android:id="@+id/btnCan03"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_toLeftOf="@+id/btnRes"
            android:background="@drawable/button_style_gray"
            android:paddingLeft="10sp"
            android:paddingRight="10sp"
            android:text="@string/cancel03"
            android:textColor="#ff0000"
            android:textSize="40sp" />

        <Button
            android:id="@+id/btnRes"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_centerInParent="true"
            android:background="@drawable/button_style_gray"
            android:gravity="center"
            android:paddingLeft="10sp"
            android:paddingRight="10sp"
            android:text="@string/reset"
            android:textColor="#fff"
            android:textSize="40sp" />

        <Button
            android:id="@+id/btnCan01"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_toRightOf="@+id/btnRes"
            android:background="@drawable/button_style_gray"
            android:paddingLeft="10sp"
            android:paddingRight="10sp"
            android:text="@string/cancel01"
            android:textColor="#00ff00"
            android:textSize="40sp" />

        <TextView
            android:id="@+id/tView01"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_centerVertical="true"
            android:layout_toRightOf="@+id/btnCan01"
            android:text="@string/textCan01"
            android:textColor="#24a319"
            android:textSize="40sp" />
    </RelativeLayout>

    <RelativeLayout
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:orientation="horizontal"
        android:layout_centerVertical="true">

        <Button
            android:id="@+id/btn03"
            android:layout_width="300sp"
            android:layout_height="300sp"
            android:layout_centerVertical="true"
            android:background="@drawable/button_style_red"
            android:gravity="center"
            android:text="@string/button1"
            android:textColor="#ffff00"
            android:textSize="120sp" />

        <TextView
            android:id="@+id/tvAccyrasy"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_centerInParent="true"
            android:gravity="center"
            android:text="@string/scoring"
            android:textColor="#51ff0d"
            android:textSize="250sp" />

        <Button
            android:id="@+id/btn01"
            android:layout_width="300sp"
            android:layout_height="300sp"
            android:layout_alignParentEnd="true"
            android:layout_alignParentRight="true"
            android:layout_centerVertical="true"
            android:background="@drawable/button_style_green"
            android:gravity="center"
            android:text="@string/button2"
            android:textColor="#ffff00"
            android:textSize="120sp" />
    </RelativeLayout>

    <RelativeLayout
        android:layout_width="wrap_content"
        android:layout_height="wrap_content">

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="vertical"
            android:layout_above="@id/btnPresentation">
            <TextView
                android:id="@+id/sudNumTV"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:textColor="#ffff00"
                android:textSize="40sp"
                android:text = "Judge №"
                android:gravity="center"/>
            <TextView
                android:id="@+id/phumTV"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:textColor="#ffff00"
                android:textSize="40sp"
                android:text = "Poomsae"
                android:gravity="center"/>
        </LinearLayout>

        <Button
            android:id="@+id/btnPresentation"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_alignParentBottom="true"
            android:layout_gravity="bottom"
            android:background="@drawable/button_style_gray"
            android:text="@string/presentation"
            android:textColor="#fff"
            android:textSize="50sp" />
    </RelativeLayout>

</RelativeLayout>
</LinearLayout>